using SmartLink.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SmartLink.EnumLibrary;

namespace SmartLink.IRepository
{
    public interface IPER_DataAuthorizationRepo : IRepository<PER_DataAuthorization>
    {
        /// <summary>
        /// 获取授权给指定对象的数据权限
        /// </summary>
        /// <param name="ownerType"></param>
        /// <param name="ownerIds"></param>
        /// <returns></returns>
        IEnumerable<PER_DataAuthorization> GetDataAuthorization(AuthorizationOwnerTypeEnum ownerType, params int[] ownerIds);
    }
}
